package com.javaclimb.music.service.impl;

import com.javaclimb.music.mapper.AdminMapper;
import com.javaclimb.music.po.Admin;
import com.javaclimb.music.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public int getAdminByIdByPass(Admin admin) {
        return adminMapper.getAdminByIdByPass(admin);
    }

    @Override
    public Integer saveAdmin(Admin admin) {
        return adminMapper.saveAdmin(admin);
    }
}
